<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/toAdds(adds)}">添加</a>
    <table>
        <tr>
            <td>id</td>
            <td>名字</td>
            <td>性别</td>
            <td>密码</td>
            <td>年龄</td>
            <td>座机号</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${student}">
            <td th:text="${user.id}">编号</td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.gender}"></td>
            <td th:text="${user.password}"></td>
            <td th:text="${user.age}"></td>
            <td th:text="${user.tel}"></td>
            <td>
                <a th:href="@{/findByIds(id=${user.id})}">修改</a>
                <a th:href="@{/dels(id=${user.id})}">删除</a>
            </td>
        </tr>
    </table>

<!--<div>-->
<!--    <a th:text="'共'+${currentPage.getPages()}+'页'"></a>-->
<!--    <a th:href="@{/page(currentPage=${currentPage.getFirstPage()})}">首页</a>-->
<!--    <a th:if="${currentPage.hasPreviousPage()}== true " th:href="@{/page(currentPage=${currentPage.getPrePage()})}">上一页</a>-->
<!--    <a th:href="@{'page?currentPage='+{i}}" th:each="i :${#numbers.sequence(currentPage.firstPage,currentPage.lastPage)}" th:class="${currentPage.getPageNumber() == i}?'page-item active' : 'page-item'"></a>-->
<!--    <a th:if="${currentPage.hasNextPage()}==true" th:href="@{/page(currentPage=${currentPage.getNextPage()})}">下一页</a>-->
<!--    <a th:href="@{/page(currentPage=${currentPage.getLastPage()})}">尾页</a>-->
<!--</div>-->

</body>
</html>